package atguigu.neixing;

import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;

public class IntrospectorDemo2 {

	public static void main(String[] args) {
		BeanInfo beanInfo = null;
		try {
			beanInfo = Introspector.getBeanInfo(TestFormItemResultHeader.class);
			PropertyDescriptor[] proDescrtptors = beanInfo.getPropertyDescriptors();
	        if(proDescrtptors!=null && proDescrtptors.length>0){
	        	for (PropertyDescriptor pdes : proDescrtptors) {
					
	        		System.out.println(pdes.getName());
	        		
	        		
	        		
				}
	        	
	        }
		} catch (IntrospectionException e) {
			e.printStackTrace();
		}
	}
}
